package com.wangijun.yuan.web.model.dto;

import com.wangijun.yuan.core.domain.Article;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

@Schema(description = "个人中心文章查询参数")
@Getter
@Setter
public class PersonalArticleParam extends PageParam<Article> {
    @Schema(description = "用户ID")
    private Long userId;
    @Schema(description = "关键词")
    private String text;
    @Schema(description = "查询类型")
    private QueryType type;

    @Schema(description = "查询类型")
    public enum QueryType {
        // 发布的
        @Schema(description = "发布的文章")
        create,
        // 点赞的
        @Schema(description = "点赞的文章")
        liked,
        // 收藏的
        @Schema(description = "收藏的文章")
        fav

    }
}
